package org.example.petitionplatformsystem.service;

import com.alibaba.dashscope.exception.InputRequiredException;
import com.alibaba.dashscope.exception.NoApiKeyException;
import org.springframework.http.codec.ServerSentEvent;
import reactor.core.publisher.Flux;

import javax.servlet.http.HttpServletResponse;

public interface AiService {
    public Flux<ServerSentEvent<String>> aiTalk(Long userId,String question, HttpServletResponse response) throws NoApiKeyException, InputRequiredException;
}
